// To parse this data:
//
//   import { Convert, DrugUserInfo } from "./file";
//
//   const drugUserInfo = Convert.toDrugUserInfo(json);
//
// These functions will throw an error if the JSON doesn't
// match the expected interface, even if the JSON is valid.

export interface DrugUserInfo {
    chsCode:       string;
    drugstoreName: string;
    multiAreaFlag: number;
    user:          string;
    userName:      string;
    shopId:        string;
}

// Converts JSON strings to/from your types
// and asserts the results of JSON.parse at runtime
export class ConvertDrugUserInfo {
    public static toDrugUserInfo(json: Object): DrugUserInfo {
        const temp = JSON.stringify(json) 
        return JSON.parse(temp)
    }

    public static drugUserInfoToJson(value: DrugUserInfo): string {
        return JSON.stringify(value);
    }
}

